<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<hdjs/>
</head>
<body>
		<div class="wrap">
	<div class="menu_list">
		<ul>
						<li>
							<a href="{|U:'GoodsType/index',array('g_id'=>$_GET['g_id'])}" class="action"> 
								商品列表
							</a>
						</li>
						<li>
							<a href="{|U:'selectCategory'}">
								添加商品
							</a>
						</li>
						<li>
							<a href="{|U:'addBrand'}">
								添加品牌
							</a>
						</li>
					</ul>
	</div>
	<table class="table2 hd-form">
		<thead>
			<td class="w100">商品gid</td>
			<td >商品名</td>
			<td class="w100">栏目</td>
			<td class="w100">图片</td>
			<td class="w150">操作</td>
		</thead> 
		<list from="$data" name='d'>
		<tr>
			<td>{$d.gid}</td> 
			<td>{$d.gname}</td>
			<td>
				{$d.cname}
			</td> 
				 	
			<td>
				<img src="__ROOT__/{$d.list_pic}" alt="{$d.gname}" class="w50 h50"></td>
			<td>
				<a href="{|U:'edit',array('gid'=>$d['gid'])}">编辑</a> |
				<a href="javascript:if(confirm('确实要删除吗?'))location='{|U:'delete',array('gid'=>$d['gid'])}'">删除</a> 
			</td>
		</tr>

		</list> 
	</table>
	<div>{$page}</div>
<div/>
</body> 
</html>